package common.utils
{
	import flash.display.DisplayObject;
	
	import mx.collections.ArrayList;
	import mx.core.IFlexDisplayObject;
	import mx.managers.PopUpManager;
	
	import spark.components.Application;
	
	public class PopupWindowUtil
	{
		public static function popupWindow(parentApplication:Object, parent:DisplayObject, window:IFlexDisplayObject):void
		{
			PopUpManager.addPopUp(window, parent, true);
			window.x = ( parentApplication.width - window.width ) / 2;
			window.y = ( parentApplication.height - window.height ) / 2;
		}
		
	}
}
